package com.getui.java.query;

import com.getui.java.COMM;
import com.gexin.rp.sdk.base.IQueryResult;
import com.gexin.rp.sdk.http.IGtPush;

public class GetUserStatus {

	public static void main(String[] args) throws Exception {
		IGtPush push = new IGtPush(COMM.host, COMM.appKey, COMM.masterSecret);
		push.connect();
		getUserStatus();
	}

	public static void getUserStatus() {
		IGtPush push = new IGtPush(COMM.host, COMM.appKey, COMM.masterSecret);
		IQueryResult abc = push.getClientIdStatus(COMM.appId, COMM.CID);
		System.out.println(abc.getResponse());
		// {result=Online}
		// {result=Offline, lastLogin=1481169620213}
		// {result=TokenMD5NoUsers}
	}
}